﻿<%@ Page Title="" Language="C#" MasterPageFile="~/administrator/site.master" AutoEventWireup="true" CodeFile="cart.aspx.cs" Inherits="administrator_cart" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<%--    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>--%>
<div style="border:1px dotted black; width: 647px;">
    <asp:Label runat="server" ID="lblthongbao" Font-Bold="true" ForeColor="Red"></asp:Label><br />
<asp:Label ID="Label1" runat="server" Text="Đơn đặt hàng:" Font-Bold="true" ForeColor="Blue" Font-Size="14px"></asp:Label>
                      <asp:GridView ID="GRVORDER" runat="server" 
        AutoGenerateColumns="False" OnRowDataBound="GridView_RowDataBound"
                    HeaderStyle-BackColor="White"
                    AllowPaging="True"
                    Width="81%" OnPageIndexChanging="GridView1_PageIndexChanging" 
        OnRowCommand="GRV1_Click" HorizontalAlign="Center" ViewStateMode="Enabled">
                    <Columns>
                   <asp:TemplateField HeaderText="Mã hóa đơn">
                        <ItemTemplate>
                            <asp:Label runat="server" ID="lbldatmua" Text='<%#Eval("Order_ID") %>'></asp:Label>
                        </ItemTemplate>
                   </asp:TemplateField>
                       <asp:TemplateField HeaderText="Thời gian đặt hàng">
                        <ItemTemplate>
                            <%#Eval("CreateTime").ToString().Substring(0,10) %>
                        </ItemTemplate>
                       </asp:TemplateField>
                    <asp:TemplateField HeaderText="Xem Chi Tiết">
                    <ItemTemplate>
                        <asp:LinkButton runat="server" ID="lbChon" CommandArgument='<%#Eval("Order_ID")+"|C" %>' CssClass="iconupdate2">xem chi tiết >></asp:LinkButton>
                     </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Đã Đặt Mua">
                    <ItemTemplate>
                       <asp:LinkButton runat="server" ID="lbUpdate" CommandArgument='<%#Eval("Order_ID")+"|U" %>' CssClass="iconupdate2"><%#Eval("Dadatmua") %></asp:LinkButton>
                    </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <%--<center><asp:Button ID="Button1" runat="server" Text="Xóa" OnClick="XoaClick"/></center>--%>
    </div>
<%--    </ContentTemplate>
    </asp:UpdatePanel>--%>
</asp:Content>

